<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>IO::Stty - Change and print terminal line settings - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of IO-Stty - MetaCPAN" href="https://metacpan.org/dist/IO-Stty/releases.rss" />
        <link rel="canonical" href="./IO::Stty.html" />
        <meta name="description" content="Change and print terminal line settings" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/IO::Stty" />
<meta name="twitter:title"       content="IO::Stty" />
<meta name="twitter:description" content="Change and print terminal line settings" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./IO::Stty.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of IO-Stty was released.">
      <span class="relatize">19 Jan 2020 02:29:01 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/IO-Stty">IO-Stty</a>
  </li>
  <li>
    Module version: 0.04
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/IO-Stty/source/lib/IO/Stty.pm">Source</a>
    (<a href="https://metacpan.org/dist/IO-Stty/source/lib/IO/Stty.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/IO-Stty/source/lib/IO">Browse</a>
    (<a href="https://metacpan.org/dist/IO-Stty/source/lib/IO?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/IO-Stty/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="http://wiki.github.com/toddr/IO-Stty">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/IO-Stty/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/toddr/IO-Stty">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="http://github.com/toddr/IO-Stty/issues">Issues</a>
      (0)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=IO-Stty+0.04" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Stty.html?oncpan=1&amp;distmat=1&amp;version=0.04&amp;grade=2" style="color: #090">1529</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Stty.html?oncpan=1&amp;distmat=1&amp;version=0.04&amp;grade=3" style="color: #900">1</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Stty.html?oncpan=1&amp;distmat=1&amp;version=0.04&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/TODDR/IO-Stty-0.04">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on IO-Stty who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/IO-Stty-0.04/index.html">2.35% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/IO-Stty/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/T/TO/TODDR/IO-Stty-0.04.tar.gz">
      Download (<span itemprop="fileSize">9.46KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FTODDR%2FIO-Stty-0.04%2Flib%2FIO%2FStty.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/IO-Stty/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/IO-Stty/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:IO-Stty">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="IO-Stty">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/IO/Stty.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="TODDR/IO-Stty-0.04"
>0.04
  (TODDR on 2020-01-19)</option>
<option
  
  value="TODDR/IO-Stty-0.03"
>0.03
  (TODDR on 2010-05-06)</option>
<optgroup label="BackPAN">'
<option
  
  value="TODDR/IO-Stty-0.02_01"
>0.02_01 DEV
  (TODDR on 2010-03-23)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/TODDR/IO-Stty-0.04/diff/' + encodeURIComponent(this.value) + '/lib/IO/Stty.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="TODDR/IO-Stty-0.04"
>0.04
  (TODDR on 2020-01-19)</option>
<option
  
  value="TODDR/IO-Stty-0.03"
>0.03
  (TODDR on 2010-05-06)</option>
<optgroup label="BackPAN">'
<option
  
  value="TODDR/IO-Stty-0.02_01"
>0.02_01 DEV
  (TODDR on 2010-03-23)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Test::More" title="Test::More" class="ellipsis">Test::More</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/IO::Stty/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=IO%3A%3AStty">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=IO-Stty">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/TODDR/IO-Stty-0.04/view/lib/IO/Stty.pm">This version</a>
    </li>
    <li>
      <a href="./IO::Stty.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/RRWO"><img src="https://www.gravatar.com/avatar/4a5274bc5d690ee3d619f044778771a7?d=identicon&amp;s=20" title="RRWO" alt="RRWO"></a>
<a class="display-all" href="https://metacpan.org/author/KEEDI"><img src="https://www.gravatar.com/avatar/95f905a7a4ccc573c711e9d264c0fde8?d=identicon&amp;s=20" title="KEEDI" alt="KEEDI"></a>
<a class="display-all" href="https://metacpan.org/author/PINGAN"><img src="https://www.gravatar.com/avatar/a02222e5e0e4fd24d52fc29a08ac6bcb?d=identicon&amp;s=20" title="PINGAN" alt="PINGAN"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/IO-Stty/plussers">3 PAUSE users</a>
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-cpan-author="AUSCHUTZ"
      data-contrib-email="auschutz@cpan.org"
    >
      <a href="https://metacpan.org/author/AUSCHUTZ" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/f0a7d9e2e89b6945917dda1323028e89?d=identicon&amp;s=20" />
      Austin Schutz
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/TODDR" class="author-name">Todd Rinaldo</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/IO/Stty.pm&#39;" class="">
<option
  selected
  value="TODDR/IO-Stty-0.04"
>0.04
  (TODDR on 2020-01-19)</option>
<option
  
  value="TODDR/IO-Stty-0.03"
>0.03
  (TODDR on 2010-05-06)</option>
<optgroup label="BackPAN">'
<option
  
  value="TODDR/IO-Stty-0.02_01"
>0.02_01 DEV
  (TODDR on 2010-03-23)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/IO-Stty">IO-Stty-0.04</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage two &#10;
          • 11 direct dependents &#10;          • 12 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="IO-Stty-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="IO-Stty-0.04">
    <input type="hidden" name="author" value="TODDR">
    <input type="hidden" name="distribution" value="IO-Stty">
    <button type="submit" class="favorite highlight"><span>3</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./IO::Stty.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>3</span> ++</a>
</div>
   / <span>IO::Stty</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./IO::Stty.html#NAME">NAME</a></li>
  <li><a href="./IO::Stty.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./IO::Stty.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./IO::Stty.html#INTRO">INTRO</a></li>
  <li><a href="./IO::Stty.html#stty-parameters">stty parameters</a>
    <ul>
      <li><a href="./IO::Stty.html#Control-settings">Control settings</a></li>
      <li><a href="./IO::Stty.html#Input-settings">Input settings</a></li>
      <li><a href="./IO::Stty.html#Output-settings">Output settings</a></li>
      <li><a href="./IO::Stty.html#Local-settings">Local settings</a></li>
      <li><a href="./IO::Stty.html#Combination-settings">Combination settings</a></li>
      <li><a href="./IO::Stty.html#Special-characters">Special characters</a></li>
      <li><a href="./IO::Stty.html#Special-settings">Special settings</a></li>
      <li><a href="./IO::Stty.html#OPTIONS">OPTIONS</a></li>
    </ul>
  </li>
  <li><a href="./IO::Stty.html#Direct-Subroutines">Direct Subroutines</a></li>
  <li><a href="./IO::Stty.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./IO::Stty.html#BUGS">BUGS</a></li>
  <li><a href="./IO::Stty.html#ACKNOWLEDGEMENTS">ACKNOWLEDGEMENTS</a></li>
  <li><a href="./IO::Stty.html#COPYRIGHT-&amp;-LICENSE">COPYRIGHT &amp; LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>IO::Stty - Change and print terminal line settings</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>    # calling the script directly
    stty.pl [setting...]
    stty.pl {-a,-g,-v,--version}
    
    # Calling Stty module
    use IO::Stty;
    IO::Stty::stty(\*TTYHANDLE, @modes);

     use IO::Stty;
     $old_mode=IO::Stty::stty(\*STDIN,&#39;-g&#39;);

     # Turn off echoing.
     IO::Stty::stty(\*STDIN,&#39;-echo&#39;);

     # Do whatever.. grab input maybe?
     $read_password = &lt;&gt;;

     # Now restore the old mode.
     IO::Stty::stty(\*STDIN,$old_mode);

     # What settings do we have anyway?
     print IO::Stty::stty(\*STDIN,&#39;-a&#39;);</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>This is the PERL POSIX compliant stty.</p>

<h1 id="INTRO">INTRO</h1>

<p>This has not been tailored to the IO::File stuff but will work with it as indicated. Before you go futzing with term parameters it&#39;s a good idea to grab the current settings and restore them when you finish.</p>

<p>stty accepts the following non-option arguments that change aspects of the terminal line operation. A `[-]&#39; before a capability means that it can be turned off by preceding it with a `-&#39;.</p>

<h1 id="stty-parameters"><a id="stty"></a>stty parameters</h1>

<h2 id="Control-settings"><a id="Control"></a>Control settings</h2>

<dl>

<dt id="[-]parenb"><a id="parenb"></a>[-]parenb</dt>
<dd>

<p>Generate parity bit in output and expect parity bit in input.</p>

</dd>
<dt id="[-]parodd"><a id="parodd"></a>[-]parodd</dt>
<dd>

<p>Set odd parity (even with `-&#39;).</p>

</dd>
<dt id="cs5-cs6-cs7-cs8"><a id="cs5"></a>cs5 cs6 cs7 cs8</dt>
<dd>

<p>Set character size to 5, 6, 7, or 8 bits.</p>

</dd>
<dt id="[-]hupcl-[-]hup"><a id="hupcl----hup"></a>[-]hupcl [-]hup</dt>
<dd>

<p>Send a hangup signal when the last process closes the tty.</p>

</dd>
<dt id="[-]cstopb"><a id="cstopb"></a>[-]cstopb</dt>
<dd>

<p>Use two stop bits per character (one with `-&#39;).</p>

</dd>
<dt id="[-]cread"><a id="cread"></a>[-]cread</dt>
<dd>

<p>Allow input to be received.</p>

</dd>
<dt id="[-]clocal"><a id="clocal"></a>[-]clocal</dt>
<dd>

<p>Disable modem control signals.</p>

</dd>
</dl>

<h2 id="Input-settings"><a id="Input"></a>Input settings</h2>

<dl>

<dt id="[-]ignbrk"><a id="ignbrk"></a>[-]ignbrk</dt>
<dd>

<p>Ignore break characters.</p>

</dd>
<dt id="[-]brkint"><a id="brkint"></a>[-]brkint</dt>
<dd>

<p>Breaks cause an interrupt signal.</p>

</dd>
<dt id="[-]ignpar"><a id="ignpar"></a>[-]ignpar</dt>
<dd>

<p>Ignore characters with parity errors.</p>

</dd>
<dt id="[-]parmrk"><a id="parmrk"></a>[-]parmrk</dt>
<dd>

<p>Mark parity errors (with a 255-0-character sequence).</p>

</dd>
<dt id="[-]inpck"><a id="inpck"></a>[-]inpck</dt>
<dd>

<p>Enable input parity checking.</p>

</dd>
<dt id="[-]istrip"><a id="istrip"></a>[-]istrip</dt>
<dd>

<p>Clear high (8th) bit of input characters.</p>

</dd>
<dt id="[-]inlcr"><a id="inlcr"></a>[-]inlcr</dt>
<dd>

<p>Translate newline to carriage return.</p>

</dd>
<dt id="[-]igncr"><a id="igncr"></a>[-]igncr</dt>
<dd>

<p>Ignore carriage return.</p>

</dd>
<dt id="[-]icrnl"><a id="icrnl"></a>[-]icrnl</dt>
<dd>

<p>Translate carriage return to newline.</p>

</dd>
<dt id="[-]ixon"><a id="ixon"></a>[-]ixon</dt>
<dd>

<p>Enable XON/XOFF flow control.</p>

</dd>
<dt id="[-]ixoff"><a id="ixoff"></a>[-]ixoff</dt>
<dd>

<p>Enable sending of stop character when the system input buffer is almost full, and start character when it becomes almost empty again.</p>

</dd>
</dl>

<h2 id="Output-settings"><a id="Output"></a>Output settings</h2>

<dl>

<dt id="[-]opost"><a id="opost"></a>[-]opost</dt>
<dd>

<p>Postprocess output.</p>

</dd>
</dl>

<h2 id="Local-settings"><a id="Local"></a>Local settings</h2>

<dl>

<dt id="[-]isig"><a id="isig"></a>[-]isig</dt>
<dd>

<p>Enable interrupt, quit, and suspend special characters.</p>

</dd>
<dt id="[-]icanon"><a id="icanon"></a>[-]icanon</dt>
<dd>

<p>Enable erase, kill, werase, and rprnt special characters.</p>

</dd>
<dt id="[-]echo"><a id="echo"></a>[-]echo</dt>
<dd>

<p>Echo input characters.</p>

</dd>
<dt id="[-]echoe,-[-]crterase"><a id="echoe-----crterase"></a>[-]echoe, [-]crterase</dt>
<dd>

<p>Echo erase characters as backspace-space-backspace.</p>

</dd>
<dt id="[-]echok"><a id="echok"></a>[-]echok</dt>
<dd>

<p>Echo a newline after a kill character.</p>

</dd>
<dt id="[-]echonl"><a id="echonl"></a>[-]echonl</dt>
<dd>

<p>Echo newline even if not echoing other characters.</p>

</dd>
<dt id="[-]noflsh"><a id="noflsh"></a>[-]noflsh</dt>
<dd>

<p>Disable flushing after interrupt and quit special characters.</p>

<p>* Though this claims non-posixhood it is supported by the perl POSIX.pm.</p>

</dd>
<dt id="[-]tostop-(np)"><a id="tostop--np"></a>[-]tostop (np)</dt>
<dd>

<p>Stop background jobs that try to write to the terminal.</p>

</dd>
</dl>

<h2 id="Combination-settings"><a id="Combination"></a>Combination settings</h2>

<dl>

<dt id="ek">ek</dt>
<dd>

<p>Reset the erase and kill special characters to their default values.</p>

</dd>
<dt id="sane">sane</dt>
<dd>

<p>Same as:</p>

<pre><code>    cread -ignbrk brkint -inlcr -igncr icrnl -ixoff opost 
    isig icanon echo echoe echok -echonl -noflsh -tostop </code></pre>

<p>also sets all special characters to their default values.</p>

</dd>
<dt id="[-]cooked"><a id="cooked"></a>[-]cooked</dt>
<dd>

<p>Same as:</p>

<pre><code>    brkint ignpar istrip icrnl ixon opost isig icanon</code></pre>

<p>plus sets the eof and eol characters to their default values if they are the same as the min and time characters. With `-&#39;, same as raw.</p>

</dd>
<dt id="[-]raw"><a id="raw"></a>[-]raw</dt>
<dd>

<p>Same as:</p>

<pre><code>    -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr
    -icrnl -ixon -ixoff -opost -isig -icanon min 1 time 0</code></pre>

<p>With `-&#39;, same as cooked.</p>

</dd>
<dt id="[-]pass8"><a id="pass8"></a>[-]pass8</dt>
<dd>

<p>Same as:</p>

<pre><code>    -parenb -istrip cs8</code></pre>

<p>With `-&#39;, same as parenb istrip cs7.</p>

</dd>
<dt id="dec">dec</dt>
<dd>

<p>Same as:</p>

<pre><code>    echoe echoctl echoke -ixany</code></pre>

<p>Also sets the interrupt special character to Ctrl-C, erase to Del, and kill to Ctrl-U.</p>

</dd>
</dl>

<h2 id="Special-characters"><a id="Special"></a>Special characters</h2>

<p>The special characters&#39; default values vary from system to system. They are set with the syntax `name value&#39;, where the names are listed below and the value can be given either literally, in hat notation (`^c&#39;), or as an integer which may start with `0x&#39; to indicate hexadecimal, `0&#39; to indicate octal, or any other digit to indicate decimal. Giving a value of `^-&#39; or `undef&#39; disables that special character.</p>

<dl>

<dt id="intr">intr</dt>
<dd>

<p>Send an interrupt signal.</p>

</dd>
<dt id="quit">quit</dt>
<dd>

<p>Send a quit signal.</p>

</dd>
<dt id="erase">erase</dt>
<dd>

<p>Erase the last character typed.</p>

</dd>
<dt id="kill">kill</dt>
<dd>

<p>Erase the current line.</p>

</dd>
<dt id="eof">eof</dt>
<dd>

<p>Send an end of file (terminate the input).</p>

</dd>
<dt id="eol">eol</dt>
<dd>

<p>End the line.</p>

</dd>
<dt id="start">start</dt>
<dd>

<p>Restart the output after stopping it.</p>

</dd>
<dt id="stop">stop</dt>
<dd>

<p>Stop the output.</p>

</dd>
<dt id="susp">susp</dt>
<dd>

<p>Send a terminal stop signal.</p>

</dd>
</dl>

<h2 id="Special-settings"><a id="Special1"></a>Special settings</h2>

<dl>

<dt id="min-N"><a id="min"></a>min N</dt>
<dd>

<p>Set the minimum number of characters that will satisfy a read until the time value has expired, when &lt;E&gt;-icanon&lt;E&gt; is set.</p>

</dd>
<dt id="time-N"><a id="time"></a>time N</dt>
<dd>

<p>Set the number of tenths of a second before reads time out if the min number of characters have not been read, when -icanon is set.</p>

</dd>
<dt id="N">N</dt>
<dd>

<p>Set the input and output speeds to N. N can be one of: 0 50 75 110 134 134.5 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 exta extb. exta is the same as 19200; extb is the same as 38400. 0 hangs up the line if -clocal is set.</p>

</dd>
</dl>

<h2 id="OPTIONS">OPTIONS</h2>

<dl>

<dt id="-a"><a id="a"></a>-a</dt>
<dd>

<p>Print all current settings in human-readable form.</p>

</dd>
<dt id="-g"><a id="g"></a>-g</dt>
<dd>

<p>Print all current settings in a form that can be used as an argument to another stty command to restore the current settings.</p>

</dd>
<dt id="-v,-version"><a id="v--version"></a>-v,--version</dt>
<dd>

<p>Print version info.</p>

</dd>
</dl>

<h1 id="Direct-Subroutines"><a id="Direct"></a>Direct Subroutines</h1>

<dl>

<dt id="stty()"><a id="stty1"></a><b>stty()</b></dt>
<dd>

<pre><code>    IO::Stty::stty(\*STDIN, @params);</code></pre>

<p>From comments:</p>

<pre><code>    I&#39;m not feeling very inspired about this. Terminal parameters are obscure
    and boring. Basically what this will do is get the current setting,
    take the parameters, modify the setting and write it back. Zzzz.
    This is not especially efficent and probably not too fast. Assuming the POSIX
    spec has been implemented properly it should mostly work.</code></pre>

</dd>
<dt id="show_me_the_crap()"><a id="show_me_the_crap"></a><b>show_me_the_crap()</b></dt>
<dd>

<p>Needs documentation</p>

</dd>
</dl>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Austin Schutz &lt;auschutz@cpan.org&gt; (Initial version and maintenance)</p>

<p>Todd Rinaldo &lt;toddr@cpan.org&gt; (Maintenance)</p>

<h1 id="BUGS">BUGS</h1>

<p>This is use at your own risk software. Do anything you want with it except blame me for it blowing up your machine because it&#39;s full of bugs.</p>

<p>See above for what functions are supported. It&#39;s mostly standard POSIX stuff. If any of the settings are wrong and you actually know what some of these extremely arcane settings (like what &#39;sane&#39; should be in POSIX land) really should be, please open an RT ticket.</p>

<h1 id="ACKNOWLEDGEMENTS">ACKNOWLEDGEMENTS</h1>

<p>None</p>

<h1 id="COPYRIGHT-&amp;-LICENSE"><a id="COPYRIGHT"></a><a id="COPYRIGHT---LICENSE"></a>COPYRIGHT &amp; LICENSE</h1>

<p>Copyright 1997 Austin Schutz, all rights reserved.</p>

<p>This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install IO::Stty, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm IO::Stty</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install IO::Stty</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./IO::Stty.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
